package com.zfzs.post.common.bean;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
* 枚举错误信息
* @author: ck
* @create: 2019/6/3/14:47
**/
@NoArgsConstructor
@AllArgsConstructor
public enum ResponseCode {

    SUCCESS("200","操作成功"),
    FAIL("101","操作失败"),
    NO_PERMISSION_FAIL("120","没有操作的权限"),

    PARAM_FAIL("130","参数验证错误"),

    TOKEN_TIME_OUT_FAIL("140","Token过期，请重新授权"),
    TOKEN_ANALYSIS_FAIL("141","错误的Token，解析错误"),
    LOGIN_TIME_OUT_FAIL("142","登录超时，请重新登录"),
    //业务上常用的错误
    V_CODE_TIME_OUT_FAIL("150","验证码失效"),
    V_CODE_ERROR_FAIL("151","验证码错误"),
    PWD_NO_SAME_FAIL("152","二次密码不一致"),
    PWD_ORIGINAL_ERROR_FAIL("153","原始密码错误"),
    SEND_CODE__ERROR_FAIL("157","发送验证码失败"),
    //用户信息
    NO_USER_FAIL("170","未查询到账户信息"),
    REPEAT_USER_FAIL("171","手机号已注册"),
    USER_ENABLED_FAIL("172","抱歉，您的账号已经被封禁"),
    USER_PWD_UPDATE_FAIL("173","密码已经被修改，请重新登录"),

    NO_POLICY_SEETING_PERMISSION("180","暂无权限"),
    //固定系统异常处理
    SERVER_EXCEPTION_ERROR("500","服务端错误，请稍后在操作"),
    BAD_REQUEST_ERROR("400","错误的请求"),
    NOT_AUTHORIZATION_ERROR("401","无身份授权标识"),
    NOT_FOUND_ERROR("404","404错误，api地址错误");

    public String code;

    public String msg;


}
